<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateDayStatisticsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('day_statistics', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('register')->default(0)->comment('注册人数');
            $table->unsignedDecimal('recharge', 20, 4)->default(0)->comment('充值金额');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('day_statistics');
    }
}
